// $store.state.user.token	html	获取
// this.$store.state.user.token	js获取
// this.$store.dispatch("user/token",data);		js异步设置
// this.$store.commit("user/token",data);		js同步设置
const state = {
    system: null,
    active: null,
    ad: null,
    subscription: null,
    cdnurl: null,
    color: null,
    color_value: null,
};

const getters = {
    system(state) {
        return state.system
    },
    active(state) {
        return state.active
    },
    ad(state) {
        return state.ad
    },
    subscription(state) {
        return state.subscription
    },
    cdnurl(state) {
        return state.cdnurl
    },
	color(state) {
	    return state.color
	},
	color_value(state) {
	    return state.color_value
	},
};

const mutations = {
    system(state, data) {
        state.system = data;
    },
    active(state, data) {
        state.active = data;
    },
    ad(state, data) {
        state.ad = data;
    },
    subscription(state, data) {
        state.subscription = data;
    },
    cdnurl(state, data) {
        state.cdnurl = data;
    },
	color(state, data) {
	    state.color = data;
	},
	color_value(state, data) {
	    state.color_value = data;
	},
};

const actions = {
    system(content, data) {
        content.commit('system', data);
    },
    active(content, data) {
        content.commit('active', data);
    },
    ad(content, data) {
        content.commit('ad', data);
    },
    subscription(content, data) {
        content.commit('subscription', data);
    },
    cdnurl(content, data) {
        content.commit('cdnurl', data);
    },
	color(content, data) {
	    content.commit('color', data);
	},
	color_value(content, data) {
	    content.commit('color_value', data);
	},
};
export default {
    namespaced:true,
    state,
    getters,
    mutations,
    actions
}
